// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(27,2) == 0;
	question = "special";
	text1 = "This tunnel opens up into a huge, natural cavern, extending far beyond the reach of your light. It is extremely cold. There are frequent patches of ice on the floor. The ceiling is very low. It's supported, in places, by thick stone columns.";
	text2 = "Now this beautiful gallery has taken on a new role: the eastern leg of the Shadow Road.";
	text3 = "Now that serviles escaping from the Shapers are being ferried through here, the rebels have placed defenses to deter intruders. The darkness ahead is dotted with the glow of arrays of field pylons.";
	text4 = "Getting close to the pylons will result in likely incineration. Serviles traveling along the road no doubt have a simple way to deactivate or bypass them. You, on the other hand, will have to locate their controls. If they exist.";
	text5 = "The presence of such powerful defenses makes you feel very nervous. Perhaps simply locating the Shadow Road is adequate for now. Exploring farther before you get more experience might be very dangerous.";
	action = SET_SDF 27 2 1;
	code =
		if ((gf(41,4) > 0) || (gf(36,1) > 0))
			rs(5);
	break;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(27,1) == 0;
	question = "special";
	text1 = "There is an enormous anvil in this room. It is a beautiful piece of work, made by master craftsmen. The dust and mold covering it do little to mask the glow that comes from within.";
	text2 = "This is an enchanted anvil, a rare and valuable artifact. It must have been abandoned during a rebel attack. A skilled crafter, with the right materials, could use it to make remarkable things.";
	action = SET_SDF 27 1 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(27,3) == 0;
	question = "special";
	text1 = "This crack in the wall was opened by a recent earthquake or explosion. On the other side, you find a subterranean workshop. It has been abandoned for months. The floor is littered with refuse.";
	text2 = "You must be directly underneath a settlement in the Mera Fen. Abandoned or ruined, most likely.";
	action = SET_SDF 27 3 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(27,4) == 0;
	question = "special";
	text1 = "The passage ahead is decorated with many skulls. Most of them bear teeth marks. The foul smell of rot is thick in the air.";
	text2 = "The rebels placed pylons at the entrance of the tunnel, probably to hold the occupant inside. Fortunately, if it is still here and alive, it has not yet decided to emerge.";
	action = SET_SDF 27 4 1;

begintalknode 5; // mine
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This mine is dormant. It is alive but underfed. It looks like it was stolen from the Shapers and is waiting to be put into use. Perhaps the rebels need to obtain a trigger mine first.";

begintalknode 6; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There is a thin journal on this pedestal. Someone was experimenting with the anvil when the final attack came. The worker fled, leaving the book behind. There aren't many entries, and most of them are quite esoteric. Only one seems useful:";
	text2 = "_The creation of blessing batons is more difficult than making wands. It is harder to protect than to destroy. The only advantage is that you do not need to procure a quality gemstone._";
	text3 = "_You do, however, need to obtain the proper spores to infuse the wooden rod. You also need the correct part from the correct creation, and it must be without flaw._";
	text4 = "_For example, the power of healing spores can be bound into the wood using the jelly of a glaahk eye. It is less known that the same substance can also react agreeably with spores that convey protective auras._";


begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 14;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 15;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 16;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 17;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 18;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 19;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 20;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 21;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 22;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 23;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 24;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 34;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 35;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 36;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 37;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 38;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 39;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 40;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 41;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 42;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 43;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 44;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 63;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		